
public class SanZhouKaoShi {

	public static void main(String[] args) {

		int y = 1;
		String s = "aaabbaaac";
		char[] c = s.toCharArray();
		char temp = c[0];
		double x = c.length;
		for (int i = 0; i < x; i++) {
			if (c[i] != temp) {
				temp = c[i];
				y++;
			}
		}
		System.out.println(x / y);
	}

}
